<!DOCTYPE html>
<html lang="en">
	<head>
		<title>东方盘龙</title>
		<meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link rel="stylesheet" href="__Admin__/css/bootstrap.min.css" />
		<link rel="stylesheet" href="__Admin__/css/bootstrap-responsive.min.css" />
		<link rel="stylesheet" href="__Admin__/css/uniform.css" />
		<link rel="stylesheet" href="__Admin__/css/select2.css" />		
		<link rel="stylesheet" href="__Admin__/css/unicorn.main.css" />
		<link rel="stylesheet" href="__Admin__/css/unicorn.grey.css" class="skin-color" />	
	</head>
	<body>
		<include file="Public/head" />
		<div id="content">
			<div id="content-header">
				<h1>微信菜单管理</h1>
			</div>
			<div id="breadcrumb">
				<a href="#" class="current">微信菜单列表</a>
			</div>
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">	
					    <a href="{:U('Weixin/cai')}" style="color:#fff;"><button class="btn btn-inverse btn-large">新增菜单</button></a>
					    <button class="btn btn-inverse btn-large" id="pcheck">批量删除</button>
						<a href="" style="color:#fff;"><button class="btn btn-inverse btn-large">生成微信自定义菜单</button></a>
						<form name="form1" action="{:U('Weixin/pdel')}" method="post" id="form1">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-th"></i>
								</span>
								<h5>微信账号列表</h5>
							</div>	
							<div class="widget-content nopadding">
								<table class="table table-bordered table-striped">
									<thead>
										<tr>
										    <th><input type="checkbox" value="all"/></th>
										    <th>菜单名</th>
											<th>关联关键词</th>
											<th>关联URL</th>
											<th>排序号</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
									<volist name="list" id="vo">
										<tr id="ck">
										    <td class="aa"><center><input type="checkbox" name="check[]"  value="{$vo.id}"/></center></td>											
										    <td>{$vo.cname}</td>						
											<td>{$vo.relation}</td>
											<td>{$vo.url}</td>
											<td>{$vo.sort}</td>													
											<td>
											<a href="{:U('Weixin/cai',array('id'=>$vo['id']))}">修改</a>
										    <a href="{:U('weixin/delcai',array('id'=>$vo['id']))}">删除</a>
											</td>
										</tr>
										</volist>
									</tbody>
								</table> 
							</form>
								<div style="float:right; margin:20px 30px; font-size:18px;">{$page}</div> 								
							</div>	
						</div>
					</div>
				</div>			
			</div>
		</div>
		<script src="__Admin__/js/jquery.min.js"></script>
		<script type="text/javascript">
		$(function(){
		    $('#pcheck').click(function() {
				var l=$("input[type=checkbox]:checked").size(); //size是选中的个数
			if(l==0){
				alert("未勾选要删除的对象");
			    return false;
			}else{
				//alert("提交表单： "+l);
			    $('#form1').submit();
			}
			});
		});
           </script>
            <script src="__Admin__/js/jquery.ui.custom.js"></script>
            <script src="__Admin__/js/bootstrap.min.js"></script>
            <script src="__Admin__/js/jquery.uniform.js"></script>
            <script src="__Admin__/js/select2.min.js"></script>
            <script src="__Admin__/js/jquery.dataTables.min.js"></script>
            <script src="__Admin__/js/unicorn.js"></script>
            <script src="__Admin__/js/unicorn.tables.js"></script>
	</body>
</html>
